package com.crm.entity;


import java.util.HashSet;
import java.util.Set;

/**
 * Role entity. @author MyEclipse Persistence Tools
 */

public class Role implements java.io.Serializable {

	// Fields

	private Integer roleId;
	private Users users;
	private String roleName;
	private Integer isDel;
	private Set userPers = new HashSet(0);
	private Set permissions = new HashSet(0);

	// Constructors

	/** default constructor */
	public Role() {
	}

	/** full constructor */
	public Role(Users users, String roleName, Integer isDel, Set userPers,
			Set permissions) {
		this.users = users;
		this.roleName = roleName;
		this.isDel = isDel;
		this.userPers = userPers;
		this.permissions = permissions;
	}

	// Property accessors

	public Integer getRoleId() {
		return this.roleId;
	}

	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}

	public Users getUsers() {
		return this.users;
	}

	public void setUsers(Users users) {
		this.users = users;
	}

	public String getRoleName() {
		return this.roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public Integer getIsDel() {
		return this.isDel;
	}

	public void setIsDel(Integer isDel) {
		this.isDel = isDel;
	}

	public Set getUserPers() {
		return this.userPers;
	}

	public void setUserPers(Set userPers) {
		this.userPers = userPers;
	}

	public Set getPermissions() {
		return this.permissions;
	}

	public void setPermissions(Set permissions) {
		this.permissions = permissions;
	}

}